
import tkinter							# 导入tkinter模块
root = tkinter.Tk()						# 生成root主窗口
label= tkinter.Label(root, text="伍浙江牛逼!")		# 生成标签
label.pack()							# 将标签添加到root主窗口
button1 = tkinter.Button(root, text="Button1")			# 生成button1
button1.pack(side=tkinter.LEFT)					# 将button1添加到root主窗口
button2 = tkinter.Button(root, text="Button2")			# 生成button2
button2.pack(side=tkinter.RIGHT)				# 将button2添加到root主窗口
root.mainloop()							# 进入消息循环
